package com.songcha.sakura.mvp.view.dialog

import android.app.Dialog
import android.os.Bundle
import com.google.android.material.bottomsheet.BottomSheetDialogFragment
import com.songcha.library_base.interfaces.ILoadData
import com.songcha.sakura.mvp.presenter.IPresenter
//import me.jessyan.autosize.internal.CustomAdapt
import javax.inject.Inject

open class BaseBottomSheetDialogFragmentP<P:IPresenter> :BottomSheetDialogFragment(),IPresenter,
    ILoadData {
    @Inject
    lateinit var presenter: P

    override fun onCreateDialog(savedInstanceState: Bundle?): Dialog {
        return CustomBottomSheetDialog(requireContext(),theme)
    }

    override fun onLoading() {

    }

    override fun onLoadSuccess() {

    }

    override fun onLoadError(e: Throwable) {

    }

    override fun onLoadTimeOut() {

    }

    override fun onLoadNoNetwork() {

    }

    override fun onLoadConnectError() {

    }

    override fun onLoadNoData() {

    }

}